<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Student Media Congress | System</title>
        <meta name="description" content="Fresh from its successful opening salvo last year, the DLSU Student Media Congress is back!">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body class="register">
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        
        
        <!-- NAVIGATION -->
        <nav class="fixed">
            <div id="logo"><a href="#"></a></div>
            <ul>
                <li><a href="#">About</a></li>
                <li class="divider">/</li>
                <li><a href="#">Speakers</a></li>
                <li class="divider">/</li>
                <li><a href="#">Schedule</a></li>
                <li class="divider">/</li>
                <li class="active"><a href="#">Register</a></li>
                <li class="divider">/</li>
                <li><a href="#">News</a></li>
                <li class="divider">/</li>
                <li><a href="#">Contact</a></li>
            </ul>
        </nav>

        <!-- HEADER -->
        <header></header>

        <!-- PLUG -->
        <div class="plug"></div>

        <!-- CONTENT -->
        <div id="content">
            <h1>Add Workshop</h1>
<?php
$title = array(
	'name'	=> 'title',
	'id'	=> 'title',
	'value'	=> set_value('title'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$description = array(
	'name'	=> 'description',
	'id'	=> 'description',
	'value'	=> set_value('description'),
	'maxlength'	=> 30,
	'size'	=> 30,
	);
	
$speaker = array(
	'name'	=> 'speaker',
	'id'	=> 'speaker',
	'value'	=> set_value('speaker'),
	'maxlength'	=> 30,
	'size'	=> 30,
	);
	
$slots = array(
	'name'	=> 'slots',
	'id'	=> 'slots',
	'value'	=> set_value('slots'),
	'maxlength'	=> 30,
	'size'	=> 30,
	);	
$date = array(
	'name'	=> 'date',
	'id'	=> 'date',
	'value'	=> set_value('date'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$timeslotS = array(
	'name'	=> 'timeslotS',
	'id'	=> 'timeslotS',
	'value'	=> set_value('timeslotS'),
	'maxlength'	=> 30,
	'size'	=> 30,
);

$timeslotE = array(
	'name'	=> 'timeslotE',
	'id'	=> 'timeslotE',
	'value'	=> set_value('timeslotE'),
	'maxlength'	=> 30,
	'size'	=> 30,
);

$venue = array(
		'name'	=> 'venue',
		'id'	=> 'venue',
		'value' => set_value('venue'),
		'maxlength'	=> $this->config->item('venue_max_length', 'tank_auth'),
		'size'	=> 30,
	);
	

$type = array(
    'name'        => 'type',
    'id'          => 'type',
    'value'       => set_value('type'),
   	'maxlength'	=> 80,
	'size'	=> 30,
    );
	
$topic = array(
    'name'        => 'topic',
    'id'          => 'topic',
    'value'       => set_value('topic'),
   	'maxlength'	=> 80,
	'size'	=> 30,
    );
	

	
$options_T = array(
    '1'  => 'Non - Competing',
    '2'    => 'Competing',
    );
	
$options_D = array(
    '1'  => '1st',
    '2'    => '2nd',
	);
	
$options_TS = array(
    '0900'  => '0900',
    '1000'  => '1000',
	'1100'	=> '1100',
	'1200'	=> '1200',
	'1300'	=> '1300',
	'1400'	=> '1400',
	'1500'	=> '1500',
	'1600'	=> '1600',
	'1700'	=> '1700',
    );
$options_TE = array(
    '0900'  => '0900',
    '1000'  => '1000',
	'1100'	=> '1100',
	'1200'	=> '1200',
	'1300'	=> '1300',
	'1400'	=> '1400',
	'1500'	=> '1500',
	'1600'	=> '1600',
	'1700'	=> '1700',
    );

?>
<?php echo form_open($this->uri->uri_string()); ?>
<table>
<?php 


?>
	<tr>
		<td><?php echo form_label('Title', $title['id']); ?></td>
		<td><?php echo form_input($title); ?></td>
		<td style="color: red;"><?php echo form_error($title['id']); ?><?php echo isset($errors[$title['name']])?$errors[$title['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Description', $description['id']); ?></td>
		<td><?php echo form_input($description); ?></td>
		<td style="color: red;"><?php echo form_error($description['id']); ?><?php echo isset($errors[$description['name']])?$errors[$description['name']]:''; ?></td>
	</tr>
    	<tr>
		<td><?php echo form_label('Venue', $venue['id']); ?></td>
		<td><?php echo form_input($venue); ?></td>
		<td style="color: red;"><?php echo form_error($venue['name']); ?><?php echo isset($errors[$venue['name']])?$errors[$venue['name']]:''; ?></td>
	</tr>
<tr>
		<td><?php echo form_label('Speaker', $speaker['id']); ?></td>
		<td><?php echo form_input($speaker); ?></td>
		<td style="color: red;"><?php echo form_error($speaker['name']); ?><?php echo isset($errors[$speaker['name']])?$errors[$speaker['name']]:''; ?></td>
	</tr>
    <tr>
		<td><?php echo form_label('Topic', $topic['id']); ?></td>
		<td><?php echo form_input($topic); ?></td>
		<td style="color: red;"><?php echo form_error($topic['name']); ?><?php echo isset($errors[$topic['name']])?$errors[$topic['name']]:''; ?></td>
	</tr>
    
<tr>
		<td><?php echo form_label('Slots', $slots['id']); ?></td>
		<td><?php echo form_input($slots); ?></td>
		<td style="color: red;"><?php echo form_error($slots['name']); ?><?php echo isset($errors[$slots['name']])?$errors[$slots['name']]:''; ?></td>
	</tr>

    <tr>
	    <td><?php echo form_label('Starting Time', $timeslotS['id']); ?></td>
	<td><?php echo form_dropdown('timeslotS', $options_TS); ?></td>
		<td style="color: red;"><?php echo form_error($timeslotS['id']); ?><?php echo isset($errors[$timeslotS['name']])?$errors[$timeslotS['name']]:''; ?></td>
	</tr>
    
       <tr>
	    <td><?php echo form_label('Ending Time', $timeslotE['id']); ?></td>
	<td><?php echo form_dropdown('timeslotE', $options_TE); ?></td>
		<td style="color: red;"><?php echo form_error($timeslotE['id']); ?><?php echo isset($errors[$timeslotE['name']])?$errors[$timeslotE['name']]:''; ?></td>
	</tr>
	

         <tr>
    <td><?php echo form_label('Type', $type['id']); ?></td>
	<td><?php echo form_dropdown('type', $options_T); ?></td>
    </tr>

	
</table>
<?php echo form_submit('Addworkshop', 'Add workshop'); ?>

<?php echo form_close(); ?>
 <?php echo anchor('/auth/logout/', 'Logout'); ?>
  <?php echo anchor('', 'Back'); ?>
                </div>
            </div>

            <!-- FOOTER -->
            <footer>

                <!-- NAVIGATION -->
                <nav>
                    <div class="button"><a href="#">Arrow</a></div>
                </nav>

                <!-- COPYRIGHT -->
                <p>© 2014 Student Media Congress</p>

                <!-- SOCIAL MEDIA -->
                <ul id="social">
                    <li class="text">Let&#39;s Catalyze</li>
                    <li id="fb"><a href="https://www.facebook.com/DLSUSMC" target="_blank">Facebook</a></li>
                    <li id="tw"><a href="https://twitter.com/dlsu_smc" target="_blank">Twitter</a></li>
                    <li id="ig"><a href="http://instagram.com/dlsusmc" target="_blank">Instagram</a></li>
                    <li id="ask"><a href="http://ask.fm/dlsu_smc" target="_blank">ask.fm</a></li>
                </ul>

            </footer>

        </div>



        <!-- SCRIPTS -->
        <script>
            (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
            function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
            e=o.createElement(i);r=o.getElementsByTagName(i)[0];
            e.src='//www.google-analytics.com/analytics.js';
            r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
            ga('create','UA-49442027-1');ga('send','pageview');
        </script>
       
       
    </body>
</html>